package org.chen.spring.cloud.finchley.zuul.config;

import org.chen.spring.cloud.finchley.zuul.filter.FirstPreFilter;
import org.chen.spring.cloud.finchley.zuul.filter.PostFilter;
import org.chen.spring.cloud.finchley.zuul.filter.SecondPreFilter;
import org.chen.spring.cloud.finchley.zuul.filter.ThirdPreFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chensj
 * @date 2020-02-09 07:16
 */
@Configuration
public class ZuulFilterConfig {
  /**
   * 注册一个bean
   *
   * @return FirstPreFilter
   */
  @Bean
  public FirstPreFilter firstPreFilter() {
    return new FirstPreFilter();
  }
  @Bean
  public SecondPreFilter secondPreFilter() {
    return new SecondPreFilter();
  }
  @Bean
  public ThirdPreFilter thirdPreFilter() {
    return new ThirdPreFilter();
  }
  @Bean
  public PostFilter postFilter() {
    return new PostFilter();
  }
}
